#K折线图类


class Kline:
    #初始化，定义成员变量
    def __init__(self, line_start=-1, line_end=0, line_direction=0, line_max=0, line_min=0, line_num=0, line_jump_time=0,line_stime=0,line_endtime=0,line_ifzs=0,pivot_high=0,pivot_low=0):
        self.line_start = line_start#起始位置
        self.line_end = line_end#结束位置
        self.line_direction = line_direction#方向
        self.line_max = line_max#最大值
        self.line_min = line_min#最小值
        self.line_num = line_num#线段数量
        self.line_jump_time = line_jump_time#跳空次数    
        self.line_stime = line_stime#开始时间
        self.line_endtime = line_endtime#结束时间
        self.line_ifzs = line_ifzs#是否有中枢
        self.pivot_high = pivot_high#中枢上轨位
        self.pivot_low = pivot_low#中枢下轨位